<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const person = {
        money: 1000,
        __proto__: null, //原型中断
      };
      const user = {
        __proto__: person,
      };
      const jack = {
        __proto__: user,
      };
      console.log(person.money); // 1000
      console.log(user.money); // 1000
      console.log(jack.money); // 1000
    </script>
  </body>
</html>
